CREATE EXTERNAL TABLE IF NOT EXISTS spmi_ods.dts_heartbeat(
id                                                 bigint                         COMMENT '主键',
create_time                                        timestamp                      COMMENT '新增时间'
)
COMMENT ''
PARTITIONED BY (dt STRING COMMENT '更新/创建日期 (yyyy-MM-dd)')
STORED AS PARQUET 
LOCATION '/dw/hive/spmi_ods.db/external/dts_heartbeat'
TBLPROPERTIES (
  'parquet.column.index.access'='true'
);